﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CreateUser.aspx.cs" Inherits="TotalSport.CreateUser"
    Theme="default" %>
    <%@ Register Src="~/Header.ascx" TagName="header" TagPrefix="uc" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>:: Registration ::</title>
    <link href="Styles/Stylsheet.css" rel="stylesheet" type="text/css" />
     <script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
    <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery-1.3.2.js" type="text/javascript"></script>
    <script src="Scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>
        <script type="text/javascript">

            $(document).ready(function () {
                // Tabs
                $('#tabs').tabs({ selected: 0 });
                $('#tabs').bind('tabsshow', function (event, ui) {
                    var tabSelected = "#tab" + ui.index + "Selected";
                    $(tabSelected).html("isClicked");
                });

                $('#aa_lnkCreateUser').css({ color: '#FF0001' });


            });
    </script>
    <script type="text/javascript">
        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : event.keyCode
            if (charCode > 31 && (charCode < 48 || charCode > 57))
                return false;
        }




    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
        <table class="CUMainTable" align="center">
              <tr>
                <td>
                    <uc:header runat="server" ID="aa" />
                </td>
            </tr>
            <tr>
                <td width="800px" align="center">
                    <table  width="400px" cellspacing="3" cellpadding="5" style="border:1px solid #030573;margin-top:30px" >
                        <tr>
                            <td colspan="3" align="left">
                                <span id="spanMsg" style="display: none" class="spanMsgs" runat="server"></span>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" align="left">
                                <asp:Label ID="lblSignUp" runat="server" Text="Sign Up for New Account" CssClass="lableSignUp"></asp:Label>
                                <hr />
                            </td>
                        </tr>
                         <tr>
                            <td >
                                <asp:Label ID="Label1" runat="server" Text="First Name*" CssClass="lableform"></asp:Label>
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:TextBox ID="txtname" runat="server" MaxLength="100"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Please Enter your Name"
                                    ControlToValidate="txtname" CssClass=" validators" Display="None"></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender9" runat="server" TargetControlID="RequiredFieldValidator5">
                                </asp:ValidatorCalloutExtender>
                                
                            </td>
                        </tr>
                         <tr>
                            <td >
                                <asp:Label ID="Label2" runat="server" Text="Last Name*" CssClass="lableform"></asp:Label>
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:TextBox ID="txtlastname" runat="server" MaxLength="100"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Please Enter your LastName"
                                    ControlToValidate="txtlastname" CssClass=" validators" Display="None"></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender10" runat="server" TargetControlID="RequiredFieldValidator6">
                                </asp:ValidatorCalloutExtender>
                                
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblUsername" runat="server" Text="Username(EmailId)*" CssClass="lableform"></asp:Label>
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:TextBox ID="txtUsername" runat="server" MaxLength="100"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please Enter your Username"
                                    ControlToValidate="txtUsername" CssClass=" validators" Display="None"></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="RequiredFieldValidator1">
                                </asp:ValidatorCalloutExtender>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" Display="None"
                                    ControlToValidate="txtUsername" CssClass=" validators" ErrorMessage="Please Enter Valid Email ID"
                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server" TargetControlID="RegularExpressionValidator1">
                                </asp:ValidatorCalloutExtender>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblPassword" runat="server" Text="Password*" CssClass="lableform"></asp:Label>
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" MaxLength="15"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please Enter your  Password"
                                    ControlToValidate="txtPassword" CssClass="validators" Display="None"></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" TargetControlID="RequiredFieldValidator2">
                                </asp:ValidatorCalloutExtender>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" Display="None"
                                    CssClass=" validators" ErrorMessage="Password length minimum: 7 & alphanumeric characters required."
                                    ControlToValidate="txtPassword" ValidationExpression="(?!^[0-9]*$)(?!^[a-z]*$)^([a-z0-9@\$]{8,20})$"></asp:RegularExpressionValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender6" runat="server" TargetControlID="RegularExpressionValidator2">
                                </asp:ValidatorCalloutExtender>
                            </td>
                        </tr>
                        <tr>
                            <td class="lblClass">
                                <asp:Label ID="lblConfirmPassword" runat="server" Text="Confirm Password*" CssClass="lableform"></asp:Label>
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:TextBox ID="txtCPassword" runat="server" TextMode="Password" MaxLength="15"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Please Enter your Password"
                                    ControlToValidate="txtCPassword" CssClass="validators" Display="None"></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" TargetControlID="RequiredFieldValidator3">
                                </asp:ValidatorCalloutExtender>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="Invalid Password"
                                    Display="None" CssClass=" validators" ControlToValidate="txtCPassword" ValidationExpression="(?!^[0-9]*$)(?!^[a-z]*$)^([a-z0-9@\$]{8,20})$"></asp:RegularExpressionValidator>
                                <asp:CompareValidator ID="CompareValidator1" runat="server" CssClass=" validators"
                                    Display="None" ErrorMessage="Password Mismatch" ControlToCompare="txtPassword"
                                    ControlToValidate="txtCPassword"></asp:CompareValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender7" runat="server" TargetControlID="RegularExpressionValidator3">
                                </asp:ValidatorCalloutExtender>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender8" runat="server" TargetControlID="CompareValidator1">
                                </asp:ValidatorCalloutExtender>
                            </td>
                        </tr>
                        <tr>
                            <td class="lblClass">
                                <asp:Label ID="lblMobileNo" runat="server" Text="Mobile No.*" CssClass="lableform"></asp:Label>
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:TextBox ID="txtMobileNO" runat="server" onkeypress="return isNumberKey(event)"
                                    MaxLength="10"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Please Enter your Mobile NO."
                                    ControlToValidate="txtMobileNO" CssClass="validators" Display="None"></asp:RequiredFieldValidator>
                                <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" TargetControlID="RequiredFieldValidator4">
                                </asp:ValidatorCalloutExtender>
                            </td>
                        </tr>
                        <tr>
                            <td class="lblClass" valign="top">
                                <asp:Label ID="lblAddress" runat="server" Text="Address" CssClass="lableform"></asp:Label>
                            </td>
                            <td valign="top">
                                :
                            </td>
                            <td>
                                <asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="lblClass">
                                <asp:Label ID="lblLocation" runat="server" Text="Location" CssClass="lableform"></asp:Label>
                            </td>
                            <td>
                                :
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlLocation" runat="server" SkinID="location">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3" style="padding-left: 160px">
                                <asp:Button ID="btnCUser" runat="server" Text="Create User" CssClass="btnnewclass"
                                    BackColor="#D6FF85" OnClick="btnCUser_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
